import React from 'react'
import Link from '../../config/BetterLink'

export default function News(props) {
    return (
        <div>
            <nav>
                <Link to={{ name: 'newsHome' }}>新闻首页</Link>
                <Link to={{ name: 'newsDetail' }}>新闻详情页面</Link>
                <Link to={{ name: 'newsSearch' }}>新闻搜索页面</Link>
            </nav>
            {/* 匹配新闻页面的子页面 */}
            <div>
                {props.children || '新闻页面'}
            </div>
        </div>
    )
}
